package item;

import static javax.persistence.GenerationType.SEQUENCE;

import java.util.ArrayList;
import java.util.List;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.OneToOne;
import javax.persistence.SequenceGenerator;



public class itsTeams {
	
	
	private int id;
	
	private String nameteam;
	
	
	private List<itsUsers> teamMembers = new ArrayList<itsUsers>();
	
	
	private String teamDescriptions;


	/**
	 * @return the nameteam
	 */
	public String getNameteam() {
		return nameteam;
	}


	/**
	 * @param nameteam the nameteam to set
	 */
	public void setNameteam(String nameteam) {
		this.nameteam = nameteam;
	}


	/**
	 * @return the teamMembers
	 */
	public List<itsUsers> getTeamMembers() {
		return teamMembers;
	}


	/**
	 * @param teamMembers the teamMembers to set
	 */
	public void addMember(itsUsers u) {
		this.teamMembers.add(u);
	}


	/**
	 * @return the teamDescriptions
	 */
	public String getTeamDescriptions() {
		return teamDescriptions;
	}


	/**
	 * @param teamDescriptions the teamDescriptions to set
	 */
	public void setTeamDescriptions(String teamDescriptions) {
		this.teamDescriptions = teamDescriptions;
	}


	/**
	 * @return the id
	 */
	public int getId() {
		return id;
	}
}
